package com.nuanshui.heatedloan.middleware.mongodb;

import org.springframework.core.convert.converter.Converter;

import java.util.Date;

public class LongToDateConverter implements Converter<Long, Date> {
    public LongToDateConverter() {
    }

    public Date convert(Long source) {
        return new Date(source.longValue());
    }
}
